﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Yun.Interface;
using Yun.Site.Response;
using Yun.Util;

namespace Yun.Site.Request
{
    /// <summary>
    /// 获取联系方式列表
    /// yun.setting.contact.list.get
    /// </summary>
    public class GetContactListRequest : ITopRequest<GetContactListResponse>
    {
        /// <summary>
        /// 页码
        /// </summary>
        public int PageNum { get; set; } = 1;

        /// <summary>
        /// 页容量
        /// </summary>
        public int PageSize { get; set; } = 1;


        public void Validate()
        {
            
        }
        public string GetApiName()
        {
            return "yun.setting.contact.list.get";
        }

        public IDictionary<string, string> GetParameters()
        {
            var parameters = new YunDictionary
            {
                {"pagenum", PageNum},
                {"pagesize", PageSize}
            };
            return parameters;
        }

    }
}
